import time
from seleniumwire import webdriver # pip install selenium-wire

options = {
    'proxy': {
        'http': 'http://app_key:app_secret@http-dynamic.xiaoxiangdaili.com:10030',
        'https': 'http://app_key:app_secret@http-dynamic.xiaoxiangdaili.com:10030',
    }
}
driver = webdriver.Firefox(seleniumwire_options=options,executable_path="#geckodriver驱动存放路径#")

driver.get('http://httpbin.org/ip')

# 获取页面内容
print(driver.page_source)

# 延迟3秒后关闭当前窗口，如果是最后一个窗口则退出
time.sleep(3)
driver.close()